package com.ruoyi.merchant.msg;

/**
 * 指令枚举
 * 
 * @author lenovo
 *
 */
public enum CmdEnum {

	/**
	 * 车辆注册
	 */
	CHECK((short)0, "CHECK"),
	/**
	 * 实时数据上报
	 */
	STATE((short)1, "State"),
	/**
	 * 开始订单
	 */
	BEGIN_ORDER((short)2, "BeginOrder"),
	/**
	 * 订单结束
	 */
	END_ORDER((short)3, "EndOrder"),
	/**
	 * 开门
	 */
	OPEN_DOOR((short)4, "OpenD"),
	/**
	 * 关门
	 */
	CLOSE_DOOR((short)5, "CloseD"),
	/**
	 * 双闪
	 */
	LIGHT((short)6, "Light"),
	/**
	 * 鸣笛
	 */
	HORN((short)7, "Horn"),
	/**
	 * 打火
	 */
	START((short)8, "Start"),
	/**
	 * 熄火
	 */
	STALL((short)9, "Stall"),
	/**
	 * 车充识别
	 */
	LINK((short)10, "Link"),
	/**
	 * 车充分离
	 */
	LEAVE((short)11, "Leave"),
	/**
	 * 卡片鉴权
	 */
	CARD_C((short)12, "CardC"),
	/**
	 * 车机订单状态校验
	 */
	REFLASH((short)13, "Reflash"),
	/**
	 * 车机启动通知指令
	 */
	BOOTNOTIFICATION((short)14, "BootNotification"),
	/**
	 * 休眠请求
	 */
	IS_SLEEP((short)15, "IsSleep"),
	/**
	 * 开尾箱
	 */
	TRUNK((short)16, "Trunk"),
	/**
	 * 车机升级
	 */
	UPDATE((short)90, "Update"),
	/**
	 * 更新车机配置
	 */
	CONFIG((short)91, "Config"),
	/**
	 * 返回值命令
	 */
	BACK((short)99, "Back"),
	/**
	 * 异常命令
	 */
	ERROR((short)999, "Error"),
	/**
	 * 车机模式切换命令
	 */
	CHANGEMOD((short)17,"CHANGEMOD");

	/**
	 * 编号
	 */
	private short code;
	/**
	 * 指令
	 */
	private String instro;

	/**
	 * 构造函数
	 * 
	 * @param code
	 * @param instro
	 */
	private CmdEnum(short code, String instro) {
		this.code = code;
		this.instro = instro;
	}

	public short getCode() {
		return code;
	}

	public String getInstro() {
		return instro;
	}

}
